package com.eportal.ORM;

/**
 * OutMerchantTradeTotalId entity. @author MyEclipse Persistence Tools
 */

public class OutMerchantTradeTotalId implements java.io.Serializable {

	// Fields

	private String merCode;
	private String termId;
	private String trdType;
	private String stlmType;
	private String stlmBegdate;
	private String termSeqno;
	private String terminalNo;
	private Long stlmAmt;

	// Constructors

	/** default constructor */
	public OutMerchantTradeTotalId() {
	}

	/** full constructor */
	public OutMerchantTradeTotalId(String merCode, String termId,
			String trdType, String stlmType, String stlmBegdate,
			String termSeqno, String terminalNo,Long stlmAmt) {
		this.merCode = merCode;
		this.termId = termId;
		this.trdType = trdType;
		this.stlmType = stlmType;
		this.stlmBegdate = stlmBegdate;
		this.termSeqno = termSeqno;
		this.terminalNo = terminalNo;
		this.stlmAmt = stlmAmt;
	}

	// Property accessors

	public String getMerCode() {
		return this.merCode;
	}

	public void setMerCode(String merCode) {
		this.merCode = merCode;
	}

	public String getTermId() {
		return this.termId;
	}

	public void setTermId(String termId) {
		this.termId = termId;
	}

	public String getTrdType() {
		return this.trdType;
	}

	public void setTrdType(String trdType) {
		this.trdType = trdType;
	}

	public String getStlmType() {
		return this.stlmType;
	}

	public void setStlmType(String stlmType) {
		this.stlmType = stlmType;
	}

	public String getStlmBegdate() {
		return this.stlmBegdate;
	}

	public void setStlmBegdate(String stlmBegdate) {
		this.stlmBegdate = stlmBegdate;
	}

	public String getTermSeqno() {
		return this.termSeqno;
	}

	public void setTermSeqno(String termSeqno) {
		this.termSeqno = termSeqno;
	}

	public String getTerminalNo() {
		return this.terminalNo;
	}

	public void setTerminalNo(String terminalNo) {
		this.terminalNo = terminalNo;
	}
	
	

	public Long getStlmAmt() {
		return stlmAmt;
	}

	public void setStlmAmt(Long stlmAmt) {
		this.stlmAmt = stlmAmt;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof OutMerchantTradeTotalId))
			return false;
		OutMerchantTradeTotalId castOther = (OutMerchantTradeTotalId) other;

		return ((this.getMerCode() == castOther.getMerCode()) || (this
				.getMerCode() != null
				&& castOther.getMerCode() != null && this.getMerCode().equals(
				castOther.getMerCode())))
				&& ((this.getTermId() == castOther.getTermId()) || (this
						.getTermId() != null
						&& castOther.getTermId() != null && this.getTermId()
						.equals(castOther.getTermId())))
				&& ((this.getTrdType() == castOther.getTrdType()) || (this
						.getTrdType() != null
						&& castOther.getTrdType() != null && this.getTrdType()
						.equals(castOther.getTrdType())))
				&& ((this.getStlmType() == castOther.getStlmType()) || (this
						.getStlmType() != null
						&& castOther.getStlmType() != null && this
						.getStlmType().equals(castOther.getStlmType())))
				&& ((this.getStlmBegdate() == castOther.getStlmBegdate()) || (this
						.getStlmBegdate() != null
						&& castOther.getStlmBegdate() != null && this
						.getStlmBegdate().equals(castOther.getStlmBegdate())))
				&& ((this.getTermSeqno() == castOther.getTermSeqno()) || (this
						.getTermSeqno() != null
						&& castOther.getTermSeqno() != null && this
						.getTermSeqno().equals(castOther.getTermSeqno())))
				&& ((this.getTerminalNo() == castOther.getTerminalNo()) || (this
						.getTerminalNo() != null
						&& castOther.getTerminalNo() != null && this
						.getTerminalNo().equals(castOther.getTerminalNo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMerCode() == null ? 0 : this.getMerCode().hashCode());
		result = 37 * result
				+ (getTermId() == null ? 0 : this.getTermId().hashCode());
		result = 37 * result
				+ (getTrdType() == null ? 0 : this.getTrdType().hashCode());
		result = 37 * result
				+ (getStlmType() == null ? 0 : this.getStlmType().hashCode());
		result = 37
				* result
				+ (getStlmBegdate() == null ? 0 : this.getStlmBegdate()
						.hashCode());
		result = 37 * result
				+ (getTermSeqno() == null ? 0 : this.getTermSeqno().hashCode());
		result = 37
				* result
				+ (getTerminalNo() == null ? 0 : this.getTerminalNo()
						.hashCode());
		return result;
	}

}